package com.goo.config;

import lombok.Data;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

@Data
@ToString
//通过 Spring Cloud 原生注解 @RefreshScope 实现配置自动更新
@RefreshScope
@Configuration
@ConfigurationProperties(prefix = "spring.redis")
public class RedisClientConfig {

    //数据库
    private int database = 0;
    //ip地址
    private String host = "47.107.186.110";
    //端口
    private int port = 6379;
    //超时时间s
    private String timeout = "30s";
    //密码
    private String password = "Dszn@2020";

}

